<?php

namespace App\Http\Controllers\Home;

use App\Http\Controllers\Controller;
use App\Models\Course;
use App\Models\Honor;
use App\Models\Page;
use App\Models\Seo;
use Illuminate\Http\Request;

class AboutController extends Controller {

    public function index(){
        $seo = Seo::getSeo(12);
        $honors = Honor::get()->toArray();
        $honors = array_chunk($honors,8);
        $courses = Course::orderBy('year', 'desc')->get()->toArray();
        return view('home.about.index',compact('seo','honors','courses'));
    }


}
